package com.baizhi.springmvc.entity;

import java.util.Date;
import java.util.List;

public class Comment {
    private Integer comment_id;
    private String content;
    private Integer user_id;
    private Integer book_id;
    private Date content_time;
    private Integer append_comment_id;
    private Integer like_count;
    private List<Comment> commentList;
    private User user;

    @Override
    public String toString() {
        return "Comment{" +
                "comment_id=" + comment_id +
                ", content='" + content + '\'' +
                ", user_id=" + user_id +
                ", book_id=" + book_id +
                ", content_time=" + content_time +
                ", append_comment_id=" + append_comment_id +
                ", like_count=" + like_count +
                ", commentList=" + commentList +
                ", user=" + user +
                '}';
    }

    public Comment() {
    }

    public Comment(Integer comment_id, String content, Integer user_id, Integer book_id, Date content_time, Integer append_comment_id, Integer like_count, List<Comment> commentList, User user) {
        this.comment_id = comment_id;
        this.content = content;
        this.user_id = user_id;
        this.book_id = book_id;
        this.content_time = content_time;
        this.append_comment_id = append_comment_id;
        this.like_count = like_count;
        this.commentList = commentList;
        this.user = user;
    }

    public Integer getComment_id() {
        return comment_id;
    }

    public void setComment_id(Integer comment_id) {
        this.comment_id = comment_id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public Integer getBook_id() {
        return book_id;
    }

    public void setBook_id(Integer book_id) {
        this.book_id = book_id;
    }

    public Date getContent_time() {
        return content_time;
    }

    public void setContent_time(Date content_time) {
        this.content_time = content_time;
    }

    public Integer getAppend_comment_id() {
        return append_comment_id;
    }

    public void setAppend_comment_id(Integer append_comment_id) {
        this.append_comment_id = append_comment_id;
    }

    public Integer getLike_count() {
        return like_count;
    }

    public void setLike_count(Integer like_count) {
        this.like_count = like_count;
    }

    public List<Comment> getCommentList() {
        return commentList;
    }

    public void setCommentList(List<Comment> commentList) {
        this.commentList = commentList;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
